package jpb.module.daomain.department;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by haol on 2017/4/5.
 */
public class Department {
        private Integer id;
        private String name;
        private Integer parentId;
        private String logoName;
        private String logoPath;
        private String introduce;
        private String oid;
        private List<Department> child = new ArrayList<Department>();
        private String icon;

        public String getIcon() {
                return icon;
        }

        public void setIcon(String icon) {
                this.icon = icon;
        }


        public List<Department> getDeps() {
                return child;
        }

        public void setDeps(List<Department> deps) {
                this.child = deps;
        }

        public Integer getId() {
                return id;
        }

        public void setId(Integer id) {
                this.id = id;
        }

        public String getName() {
                return name;
        }

        public void setName(String name) {
                this.name = name;
        }

        public Integer getParentId() {
                return parentId;
        }

        public void setParentId(Integer parentId) {
                this.parentId = parentId;
        }

        public String getLogoName() {
                return logoName;
        }

        public void setLogoName(String logoName) {
                this.logoName = logoName;
        }

        public String getLogoPath() {
                return logoPath;
        }

        public void setLogoPath(String logoPath) {
                this.logoPath = logoPath;
        }

        public String getIntroduce() {
                return introduce;
        }

        public void setIntroduce(String introduce) {
                this.introduce = introduce;
        }

        public String getOid() {
                return oid;
        }

        public void setOid(String oid) {
                this.oid = oid;
        }


        public void add(Department department) {
                child.add(department);
        }

        public void remove(Department department) {
                child.remove(department);
        }


}
